package org.gbif.wdpa.action;

import java.util.List;

import org.gbif.wdpa.service.WDPAManager;
import com.opensymphony.xwork2.Action;

/**
 * Example action
 * @author trobertson
 */
public class NameAction {
    //private WDPAManager manager;
    private List<String> names;

    /**
     * @param manager To set
     */
    public NameAction(WDPAManager manager) {
       // this.manager = manager;
    }

    /**
     * Default execution
     * @return Success
     */
    public String execute() {
        return Action.SUCCESS;
    }

    /**
     * Sets the names 
     * @return Success 
     */
    public String names() {
    	//names=manager.getNames();
        return Action.SUCCESS;
    }

	/**
	 * @return the names
	 */
	public List<String> getNames() {
		return names;
	}

//	/**
//	 * @return the names
//	 */
//	@SMDMethod
//	public List<String> getAllNames() {
//		//return manager.getNames();
//	}

	/**
	 * @param names the names to set
	 */
	public void setNames(List<String> names) {
		this.names = names;
	}
}
